/*
 *  * Copyright (c) 2020-2030  Xiamen Nascent Corporation. All rights reserved. 
 *
 *  * https://www.nascent.cn
 *
 *  * 厦门南讯股份有限公司创立于2010年，是一家始终以技术和产品为驱动，帮助大消费领域企业提供客户资源管理（CRM）解决方案的公司。
 *  * 福建省厦门市软件园二期观日路22号401
 *  * 客服电话 400-009-2300
 *  * 电话 +86（592）5971731 传真 +86（592）5971710
 *
 *  * All source code copyright of this system belongs to Xiamen Nascent Co., Ltd.
 *  * Any organization or individual is not allowed to reprint, publish, disclose, embezzle, sell and use it for other illegal purposes without permission!
 */

package com.example.demo.common;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class BaseResponse<T> implements Serializable {

    @ApiModelProperty(value = "响应编码", position = 1)
    private String code = "200";

    @ApiModelProperty(value = "响应描述", position = 2)
    private String msg = "Success";

    @ApiModelProperty(value = "响应状态(true:成功 false:失败)", position = 3)
    public Boolean success = true;

    @ApiModelProperty(value = "响应结果", position = 4)
    private T result;

    @ApiModelProperty(value = "请求ID", position = 5)
    private String requestId;

}
